package com.homedo.async.mysql.support.mapper.insert;

import com.homedo.async.mysql.support.dataobject.Example;
import com.homedo.async.mysql.support.mapper.MapperI;
import io.vertx.sqlclient.SqlConnection;
import reactor.core.publisher.Mono;

/**
 * @author jgshun
 * @date 2020/3/17 10:30 AM
 */
public interface SaveMapperExampleI<T, ID> extends MapperI<T, ID> {

    Mono<Long> save(Example example);

    Mono<Long> save(Example example, SqlConnection connection);

}
